<form id="app-form" class="layui-form layuimini-form">

    <div class="layui-form-item">
        <label class="layui-form-label">网站标题</label>
        <div class="layui-input-block">
            <input type="text" name="htitle" class="layui-input" lay-verify="required" placeholder="请输入站点名称" value="{:sysconfig('home','htitle')}">
            <tip>填写站点名称。</tip>
        </div>
    </div>
    
    <div class="layui-form-item">
        <label class="layui-form-label">通讯链接</label>
        <div class="layui-input-block">
            <input type="text" name="chatlink" class="layui-input" lay-verify="required" placeholder="请输入站点名称" value="{:sysconfig('home','chatlink')}">
            <tip>可填写Q群链接以实现弹出加群窗口或直接在右下角弹出内置通讯,<a style="color:blue" onclick="setnz()">点我设置为内置通讯</a></tip>
            <script>function setnz(){$('input[name="chatlink"]').val('/chat/index');}</script>
        </div>
    </div>
  
    <div class="layui-form-item">
        <label class="layui-form-label">弹出通讯</label>
        <div class="layui-input-block">
            <input type="radio" name="tc" lay-filter="tc" value="0" title="关闭" {if sysconfig('home','tc') == '0'}checked=""{/if}>
            <input type="radio" name="tc" lay-filter="tc" value="1" title="开启" {if sysconfig('home','tc') == '1'}checked=""{/if}>
           
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">网站状态</label>
        <div class="layui-input-block">
            <input type="radio" name="hstatus" lay-filter="hstatus" value="0" title="关闭" {if sysconfig('home','hstatus') == '0'}checked=""{/if}>
            <input type="radio" name="hstatus" lay-filter="hstatus" value="1" title="开启" {if sysconfig('home','hstatus') == '1'}checked=""{/if}>
           
        </div>
    </div>
    
    <div class="hr-line"></div>
    <div class="layui-form-item text-center">
        <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit="system/config/save" data-refresh="false">确认</button>
        <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
    </div>

</form>